import request from '@/utils/request'

// 师傅入驻
export const workerCreate = function (data) {
  return request({
    url: '/api/worker/create',
    method: 'post',
    data
  })
}

// 返回三级城市树
export const cityTree = function (data) {
  return request({
    url: '/base_api/city/tree',
    method: 'get',
    data
  })
}

// 获取编码和子编码
export const codeTree = function (data) {
  return request({
    url: '/base_api/code/tree?appId=2&code=name',
    method: 'get',
    data
  })
}

// 师傅详情
export const workerDetail = function () {
  return request({
    url: '/api/worker/detail',
    method: 'get'
  })
}

